package homework.threadwork2.coding;

public  class Weather{
    private int temp;
    private int humidity;
    private Boolean flag = true;

    public  Boolean getFlag() {
        return flag;
    }

    public synchronized    void setFlag(Boolean flag) {

        this.flag = flag;
    }

    public synchronized  int getTemp() {
        return temp;
    }
   

    public  synchronized void setTemp(int temp) {
        this.temp = temp;
    }

    public synchronized    int getHumidity() {
        return humidity;
    }

    public synchronized    void setHumidity(int humidity) {
        this.humidity = humidity;
    }
}
